using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;


public class ThreadedCounters
{
    public static void Main()
    {
        Thread thread1 = new Thread(new ThreadStart(Counter1));
        thread1.Start();

        Thread thread2 = new Thread(new ThreadStart(Counter2));
        thread2.Start();
        Console.ReadLine();
    }
    public static void Counter1()
    {
        for (int i = 0; i < 10; i++)
        {
            Console.WriteLine("Counter 1: " + i);
            Thread.Sleep(35);
        }
    }
    public static void Counter2()
    {
        for (int i = 0; i < 10; i++)
        {
            Console.WriteLine("Counter 2: " + i);
            Thread.Sleep(20);
        }
    }
}




